revEndXMLNode
Type
message
Summary
Sent to the current card when the revXMLCreateTreeFromFile function encounters a closing tag while parsing an XML file.
Syntax
revEndXMLNode <pNodeName>
Description
Handle the revEndXMLNode message if you want to build your own subset of an XML document.
The revXMLCreateTree or revXMLCreateTreeFromFile functions take XML data and parse it. When you call either of these functions, you can specify whether or not to send messages during the parsing operation.
If you have specified that you want the function to send messages, the revEndXMLNode message is sent when the function encounters a close tag. If you have specified that you don't want messages sent, no revEndXMLNode messages are sent.
Parameters
Name | Type | Description |
---|---|---|
pNodeName | string | A string containing the name of the XML element currently being parsed. |
Examples
on revEndXMLNode -- notify user how many nodes have been parsed
global nodesProcessed
add 1 to nodesProcessed
put nodesProcessed && "nodes processed" into field "Progress"
end revEndXMLNode
Related
command: call, revXMLDeleteNode
control structure: function
function: revXMLCreateTreeFromFile
glossary: current card, tag, message, function, XML, XML document
Compatibility and Support
Introduced
LiveCode 2.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile